package com.xyz.rok.tools.service;

import com.xyz.rok.tools.model.PlayerStat;
import com.xyz.rok.tools.model.dto.StatDto;
import com.xyz.rok.tools.model.request.DkpStatRequest;

import java.util.List;

public interface PlayerStatService{


    int deleteByPrimaryKey(Long id);

    int insert(PlayerStat record);

    int insertSelective(PlayerStat record);

    PlayerStat selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PlayerStat record);

    int updateByPrimaryKey(PlayerStat record);

    List<String> getFinishedNames(Integer serverId);

    void insertOrUpdate(DkpStatRequest dkpStatRequest);

    List<StatDto> getStatDate(Integer server, Integer day, String orderBy);

    List<Integer> getHasDataDay(Integer serverId);

    List<StatDto> getDKPCompare(Integer serverId, Integer beginDate, Integer endDate, Integer t4Kill, Integer t5Kill, Integer death);

    List<StatDto> getStatCompare(Integer serverId, Integer beginDate, Integer endDate, String orderBy);

    List<StatDto> selectStatDownloadByDay(Integer serverId, Integer day);
}
